class PolicyWarningEntity {
  List<PolicyWarningInfo>? rows;

  PolicyWarningEntity({
    this.rows,
  });

  factory PolicyWarningEntity.fromJson(Map<String, dynamic> json) {
    final originList = json['rows'] as List?;
    List<PolicyWarningInfo> protocolList =
        (originList??[]).map((value) => PolicyWarningInfo.fromJson(value)).toList();
    return PolicyWarningEntity(
      rows: protocolList,
    );
  }
}

class PolicyWarningInfo {
  String? customerName;
  String? floorNo;
  String? roomNo;
  String? bedNo;
  String? createdDate;
  String? lastCallTime;
  String? content;
  String? answerByName;
  String? answerTime;
  String? dealTime;
  String? handlingTime;
  int? id;
  int? callTimes;
  num? callType;
  String? deviceName;
  String? position;



  PolicyWarningInfo({
    this.customerName,
    this.floorNo,
    this.roomNo,
    this.bedNo,
    this.id,
    this.createdDate,
    this.lastCallTime,
    this.callTimes,
    this.content,
    this.answerByName,
    this.answerTime,
    this.dealTime,
    this.handlingTime,
    this.callType,
    this.deviceName,this.position
  });

  PolicyWarningInfo.fromJson(Map data) {
    handlingTime = data['handlingTime'];
    dealTime = data['dealTime'];
    customerName = data['customerName'];
    floorNo = data['floorNo'];
    roomNo = data['roomNo'];
    bedNo = data['bedNo'];
    id = data['id'];
    createdDate = data['createdDate'];
    lastCallTime = data['lastCallTime'];
    callTimes = data['callTimes'];
    content = data['content'];
    answerByName = data['answerByName'];
    answerTime = data['answerTime'];
    callType = data['callType'];
    deviceName = data['deviceName'];
    position = data['position'];
  }
}
